package pers.csw.lookBook.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.csw.lookBook.mapper.ChapterMapper;
import pers.csw.lookBook.entity.Chapter;
import pers.csw.lookBook.service.ChapterService;

import java.util.List;

@Service
public class ChapterServiceImpl extends ServiceImpl<ChapterMapper,Chapter>implements ChapterService {
    @Autowired
    ChapterMapper chapterMapper;
    @Override
    public List<Chapter> getChapter(Integer bookId) {
        return chapterMapper.getChapter(bookId);
    }
}
